package com.cloudy.s3.request;

import com.cloudy.exception.AWSAccessException;
import com.cloudy.impl.SuccessHandlerWithResponse;
import com.cloudy.s3.response.RequestPaymentConfiguration;

public class GetRequestPayment extends S3Request {
	public GetRequestPayment(String bucketName) {
		super(bucketName, "GET");
		super.successHandler = new SuccessHandlerWithResponse();
		super.subResource = "requestPayment";
		attributes.put("requestPayment", "");
	}

	public RequestPaymentConfiguration execute() throws AWSAccessException {
		return (RequestPaymentConfiguration) executeInner().getResponse();
	}
}
